Arrange a given list of integers in an ascending and descending order